package com.ujf.drools.model;

import java.util.Properties;

public class Stats {

	private int cpu;
	private int minCpu, maxCpu;
	private int mem;
	private int minMem, maxMem;

	public Stats(Properties p) {

		minCpu = Integer.parseInt(p.getProperty("minCpu"));
		maxCpu = Integer.parseInt(p.getProperty("maxCpu"));
		minMem = Integer.parseInt(p.getProperty("minMem"));
		maxMem = Integer.parseInt(p.getProperty("maxMem"));
		
		System.out.println("Propriétés lues :");
		System.out.println("minCpu :"+minCpu);
		System.out.println("maxCpu :"+maxCpu);
		System.out.println("minMem :"+minMem);
		System.out.println("maxMem :"+maxMem);
		

	}

	public int getCpu() {
		return cpu;
	}

	public void setCpu(int cpu) {
		this.cpu = cpu;
	}

	public int getMem() {
		return mem;
	}

	public void setMem(int mem) {
		this.mem = mem;
	}

	public int getMinCpu() {
		return minCpu;
	}

	public void setMinCpu(int minCpu) {
		this.minCpu = minCpu;
	}

	public int getMaxCpu() {
		return maxCpu;
	}

	public void setMaxCpu(int maxCpu) {
		this.maxCpu = maxCpu;
	}

	public int getMinMem() {
		return minMem;
	}

	public void setMinMem(int minMem) {
		this.minMem = minMem;
	}

	public int getMaxMem() {
		return maxMem;
	}

	public void setMaxMem(int maxMem) {
		this.maxMem = maxMem;
	}

}
